Skip to content

src: update std::vector<v8::Local<T>> to use v8::LocalVector<T>#57578

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
Aditi-1400:replace-vector
Apr 16, 2025
Merged

src: update std::vector<v8::Local<T>> to use v8::LocalVector<T>#57578
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
Aditi-1400:replace-vector

Conversation

@Aditi-1400
Copy link
Copy Markdown
Contributor

According to V8's public API documentation, local handles (i.e., objects of type v8::Local) "should never be allocated on the heap". This replaces the usage of heap-allocated data structures containing instances of v8::Local, specifically the std::vector<v8::Local<v8::String>> with recently introduced v8::LocalVector<T>.

This is first of the series of commits to replace all std::vector<v8::Local<T>> to use v8::LocalVector<T>.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants